/**
 * @(#) Money.java
 */

package edu.stthomas.edu.seis770.stocksystem;

import java.text.NumberFormat;

public class Money {
    private double amount;
    private NumberFormat moneyFormat = null;

    public Money(double amount){
        this.amount=amount;
    }

    public String getFormattedAmount(){
        if(moneyFormat == null){
            moneyFormat = NumberFormat.getCurrencyInstance();
        }
        return moneyFormat.format(amount);
    }

    public double getAmount(){
        return amount;
    }
    



}


